package com.crm.business.crm.service;


import com.crm.common.crm.entity.BO.CrmLargeScreenSettingBO;
import com.crm.common.crm.entity.BO.CrmLargeScreenSettingSaveBO;
import com.crm.common.crm.entity.BO.CrmLargeScreenSettingSearchBO;
import com.crm.common.crm.entity.PO.CrmLargeScreenSetting;
import com.crm.common.ka.core.entity.BasePage;
import com.crm.business.servlet.BaseService;
import com.crm.common.ka.core.servlet.upload.FileEntity;
import com.crm.common.ka.core.servlet.upload.UploadEntity;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 线索表 服务类
 * </p>
 *
 * @author zhangzhiwei
 * @since 2020-05-21
 */
public interface CrmLargeScreenSettingService extends BaseService<CrmLargeScreenSetting> {

    BasePage<CrmLargeScreenSettingBO> queryList(CrmLargeScreenSettingSearchBO crmLargeScreenSetting);

    /**
     * 保存或新增信息
     *
     * @param crmModel model
     */
    public void addOrUpdate(CrmLargeScreenSettingSaveBO crmModel);

    /**
     * 上传文件
     * @param file 文件对象
     * @param batchId batchId
     * @param type type
     * @return entity
     */
    public UploadEntity upload(MultipartFile file, String batchId, String type, String isPublic) throws IOException;

    /**
     * 修改大屏配置项状态
     * @param checkStatus
     */
    public void updateLargeScreenSettingDataStatus(String checkStatus, String batchId);

    public FileEntity queryMp4();

    public void deleteMp4(List<Integer> fileId);
}
